import { $freePost, $post } from "@src/assets/js/request"

export async function sendSMSRequest (mobile) {
  const res = await $freePost('/api/common/sms', {
    mobile,
    template_code: 'SMS_182920835'
  })
  return res.data
}

export async function modifyPasswordRequest (mobile, password, verification) {
  const res = await $post('/api/common/edit_password', {
    mobile,
    verification,
    new_password: password
  })
  return res.data
}
